﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Data;

namespace .BizLogic
{
    using RDIFramework.BizLogic;
    using RDIFramework.Utilities;

    /// <summary>
    /// gxuniversityEntity
    /// gx_高校名单
    /// 
    /// 修改纪录
    /// 
    /// 2025-01-18 版本：3.5  创建主键。
    /// 
    /// 版本：3.5
    /// 
    /// <author>
    /// <name></name>
    /// <date>2025-01-18</date>
    /// </author>
    /// </summary>
    [Serializable]
    public partial class gxuniversityEntity : BaseEntity
    {
        /// <summary>
        /// Id
        /// </summary>
        [Key] 
        [ScaffoldColumn(false)] 
        [DataMember] 
        public string Id { get; set; } 

        /// <summary>
        /// 高校名称
        /// </summary>
        [StringLength(100, ErrorMessage = "高校名称不能超过100个字符")] 
        [Display(Name = "高校名称")] 
        [Required(ErrorMessage = "需要输入高校名称")]
        [DataMember] 
        public string Uname { get; set; } 

        /// <summary>
        /// 高校简称
        /// </summary>
        [StringLength(100, ErrorMessage = "高校简称不能超过100个字符")] 
        [Display(Name = "高校简称")] 
        [Required(ErrorMessage = "需要输入高校简称")]
        [DataMember] 
        public string ushortNname { get; set; } 

        /// <summary>
        /// 所在省市
        /// </summary>
        [StringLength(100, ErrorMessage = "所在省市不能超过100个字符")] 
        [Display(Name = "所在省市")] 
        [Required(ErrorMessage = "需要输入所在省市")]
        [DataMember] 
        public string Province { get; set; } 

        /// <summary>
        /// 类别
        /// </summary>
        [StringLength(50, ErrorMessage = "类别不能超过50个字符")] 
        [Display(Name = "类别")] 
        [Required(ErrorMessage = "需要输入类别")]
        [DataMember] 
        public string Category { get; set; } 

        /// <summary>
        /// 主要专业
        /// </summary>
        [StringLength(250, ErrorMessage = "主要专业不能超过250个字符")] 
        [Display(Name = "主要专业")] 
        [Required(ErrorMessage = "需要输入主要专业")]
        [DataMember] 
        public string mainDiscipline { get; set; } 

        /// <summary>
        /// 强项专业
        /// </summary>
        [StringLength(250, ErrorMessage = "强项专业不能超过250个字符")] 
        [Display(Name = "强项专业")] 
        [Required(ErrorMessage = "需要输入强项专业")]
        [DataMember] 
        public string strongDiscipline { get; set; } 

        /// <summary>
        /// 对应社会行业职业
        /// </summary>
        [StringLength(250, ErrorMessage = "对应社会行业职业不能超过250个字符")] 
        [Display(Name = "对应社会行业职业")] 
        [Required(ErrorMessage = "需要输入对应社会行业职业")]
        [DataMember] 
        public string Industry { get; set; } 

        /// <summary>
        /// 官网地址
        /// </summary>
        [StringLength(50, ErrorMessage = "官网地址不能超过50个字符")] 
        [Display(Name = "官网地址")] 
        [Required(ErrorMessage = "需要输入官网地址")]
        [DataMember] 
        public string officeWebsite { get; set; } 

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(250, ErrorMessage = "备注不能超过250个字符")] 
        [Display(Name = "备注")] 
        [Required(ErrorMessage = "需要输入备注")]
        [DataMember] 
        public string Market { get; set; } 

        /// <summary>
        /// 构造函数
        /// </summary>
        public gxuniversityEntity()
        {
        }


        /// <summary>
        /// 从数据行读取
        /// </summary>
        /// <param name="dataRow">数据行</param>
        protected override BaseEntity GetFrom(IDataRow dataRow)
        {
            this.Id = BusinessLogic.ConvertToString(dataRow[gxuniversityTable.FieldId]);
            this.Uname = BusinessLogic.ConvertToString(dataRow[gxuniversityTable.FieldUname]);
            this.ushortNname = BusinessLogic.ConvertToString(dataRow[gxuniversityTable.FieldushortNname]);
            this.Province = BusinessLogic.ConvertToString(dataRow[gxuniversityTable.FieldProvince]);
            this.Category = BusinessLogic.ConvertToString(dataRow[gxuniversityTable.FieldCategory]);
            this.mainDiscipline = BusinessLogic.ConvertToString(dataRow[gxuniversityTable.FieldmainDiscipline]);
            this.strongDiscipline = BusinessLogic.ConvertToString(dataRow[gxuniversityTable.FieldstrongDiscipline]);
            this.Industry = BusinessLogic.ConvertToString(dataRow[gxuniversityTable.FieldIndustry]);
            this.officeWebsite = BusinessLogic.ConvertToString(dataRow[gxuniversityTable.FieldofficeWebsite]);
            this.Market = BusinessLogic.ConvertToString(dataRow[gxuniversityTable.FieldMarket]);
            return this;
        }
    }
}
